package com.nus.iss.ad.model;

import java.util.HashMap;
import java.util.List;

public class DisbursementListModel extends HashMap<String, String> {

	private CollectionPoint collectionPoint;
	private List<DeptRequest> deptRequest;
	private int numberofDept;
	private String collectionPointName;
	private String collectionPointId;
	
	
	
	public CollectionPoint getCollectionPoint() {
		return collectionPoint;
	}
	
	public void setCollectionPoint(CollectionPoint collectionPoint) {
		this.collectionPoint = collectionPoint;
		put("collectionPointName", collectionPoint.getDescription());
		setCollectionPointId(collectionPoint.getCollectionId()+"");
	}
	
	public List<DeptRequest> getDeptRequest() {
		return deptRequest;
	}
	
	public void setDeptRequest(List<DeptRequest> deptRequest) {
		this.deptRequest = deptRequest;
		put("numberofDept", deptRequest.size()+"");
		//put("deptRequest", deptRequest.toString());
	}
	
	public int getNumberofDept() {
		return numberofDept;
	}
	
	public void setNumberofDept(int numberofDept) {
		this.numberofDept = numberofDept;
		put("numberofDept", numberofDept+"");
	}
	
	public String getCollectionPointName() {
		return collectionPointName;
	}
	
	public void setCollectionPointName(String collectionPointName) {
		this.collectionPointName = collectionPointName;
	}
	
	public String getCollectionPointId() {
		return collectionPointId;
	}
	
	public void setCollectionPointId(String collectionPointId) {
		this.collectionPointId = collectionPointId;
		put("collectionPointId", collectionPointId);
	}
	
	
	
}
